package 二进制;

public class ComplementDemo {
    public static void main(String[] args) {
        /**
         * 负值：用-1减去0位置的权得出该2进制的补码数
         */
        int max =0b11111111111111111111111111010011;
        int min =Integer.MIN_VALUE;
        System.out.println(max);
        System.out.println(Integer.toBinaryString(min));
        System.out.println(Integer.toBinaryString(-3));
    }
}
